package com.itehima.Buffer;

import java.io.*;

public class Prac04 {
    public static void main(String[] args) throws IOException {

        //利用字符流读取文件中的数据，并且一行一行的读

        //将字节流借助转换流成为字符流，将字符流写成字符缓冲流，才可以使用readline
        BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream("20240417\\111.txt"),"GBK"));
        String line;
        while ((line=br.readLine())!=null)
        {
            System.out.println(line);
        }
        br.close();
    }
}
